//
//  JWVersionNewsViewController.m
//  SiqiCalendar
//
//  Created by sunjiawen on 2018/3/1.
//  Copyright © 2018年 sjw. All rights reserved.
//

#import "JWVersionNewsViewController.h"

@interface JWVersionNewsViewController ()
@property (weak, nonatomic) IBOutlet UILabel *contentLabelView;

@end

@implementation JWVersionNewsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.contentLabelView.alpha = 0;
    self.contentLabelView.transform = CGAffineTransformMakeTranslation(0, 200);

}

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    
    [UIView animateWithDuration:0.5 animations:^{
        self.contentLabelView.alpha = 1;
    }];
    
    [UIView animateWithDuration:20.f delay:0.2 usingSpringWithDamping:0.7f initialSpringVelocity:0.0 options:UIViewAnimationOptionPreferredFramesPerSecondDefault animations:^{
        self.contentLabelView.transform = CGAffineTransformIdentity;
    } completion:^(BOOL finished) {
        
    }];
}

- (IBAction)dismissAction:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
